-- GENERATED SPELL FOR [Scholomance Adept] --


function spell0_10469(pUnit, Event) --@Cone of Cold,Self--
pUnit:FullCastSpellOnTarget(15244,pUnit)
pUnit:RegisterEvent('Sorts_10469', 8337, 1)
end

function spell1_10469(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(15499,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10469', 8335, 1)
end

function spell2_10469(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(15043,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10469', 7000, 1)
end

function Sorts_10469(pUnit, Event)
local choix_sorts_10469 = math.random(0, 2)
if choix_sorts_10469 == 0 then
pUnit:RegisterEvent('spell0_10469', 1, 1)
end
if choix_sorts_10469 == 1 then
pUnit:RegisterEvent('spell1_10469', 1, 1)
end
if choix_sorts_10469 == 2 then
pUnit:RegisterEvent('spell2_10469', 1, 1)
end
end

function mob10469_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10469', math.random(1500, 3000), 1)
end

function mob10469_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10469_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10469_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10469, 1, 'mob10469_Action')
RegisterUnitEvent(10469, 2, 'mob10469_Leave')
RegisterUnitEvent(10469, 3, 'mob10469_Kill')
RegisterUnitEvent(10469, 4, 'mob10469_Die')
